# Cmake version 
# (probably not a hard requirement, but anyway)
cmake_minimum_required(VERSION 2.6)

# Project name
project(mcleaner)

# Find WX libs. Note: "adv" is required for "About" dialog.
find_package(wxWidgets COMPONENTS core base adv REQUIRED)

# Set up WX
include( "${wxWidgets_USE_FILE}" )
set (CMAKE_CXX_FLAGS "-Wall")

# Compile mcleaner.cpp and its dependencies, call it mcleaner
add_executable(mcleaner asset.hpp filename.cpp filereader.cpp libvp.cpp mcleaner.cpp)

# Link the WX libs
target_link_libraries(mcleaner ${wxWidgets_LIBRARIES})